package com.springboot7x.demo.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Profile("prod")
@Data
@ConfigurationProperties("person")
@Component
public class Boss implements Person{
    private String name;
    private int age;

}
